package codeCreate.util.TextAnalysis;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import codeCreate.domain.Country;
import codeCreate.domain.User;
import codeCreate.util.annotation.type.Method;

/**
 * 
* 项目名称:  SPMS测试设备
* 包:        com.migu.spms.webapi 
* 类名称:    ApplyCreateController.java
* 类描述:    新建申请控制类
* 创建人:    fw  
* 创建时间:  2017年4月28日 上午9:37:54
 */
@codeCreate.util.annotation.type.Controller(introduction = "新建申请")
@Controller
@RequestMapping(value = "/DeviceService/apply", produces = "application/json;charset=UTF-8")
public class ApplyCreateController {

    /**
     * @Description 外协合作员工新建申请
     * @param sessionId
     * @return
     * @throws Exception
     */
    @Method(requestType = Country.class, responseType = User.class, introduction = "外协合作员工新建申请")
    @RequestMapping(value = "cooperateStaffApply")
    @ResponseBody
    public String cooperateStaffApply(String sessionId) throws Exception {
        // User user = getUserBySession(req, sessionId);
        // if (user == null) {
        // return generateResponse(401);
        // }
        return "";
    }

    /**
     * @Description 咪咕员工新建申请
     * @param sessionId
     * @return
     * @throws Exception
     */
    @Method(requestType = Country.class, responseType = User.class, introduction = "咪咕员工新建申请")
    @RequestMapping(value = "/miguStaffApply")
    @ResponseBody
    public String miguStaffApply(String sessionId) throws Exception {
        return "";
    }
}
